<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8" name="author" content="20201212杨铖宇">
    <title>Welcome</title>
    <!-- 引入css、js -->
    <link rel="stylesheet" href="css/welcome.css">
    <script src="js/login.js"></script>
    <script src="js/jquery.min.js"></script>
</head>
<body>
	<!--背景变换-->
    <div class="slideshow">
        <div class="slideshow-image" style="background-image: url('img/wallhaven6.png')"></div>
        <div class="slideshow-image" style="background-image: url('img/wallhaven7.png')"></div>
        <div class="slideshow-image" style="background-image: url('img/wallhaven8.png')"></div>
        <div class="slideshow-image" style="background-image: url('img/wallhaven9.png')"></div>
    </div>
    <!--导航栏-->
    <ul>
      <li><a class="active" href="https://ycy20201212.github.io/">Home</a></li>
      <li><a href="https://www.sohu.com/">News</a></li>
      <li><a href="https://www.cnblogs.com/20201212ycy/">Contact</a></li>
      <li style="float:right"><a href="About.html">About</a></li>
    </ul>
    <!--主体-->
    <div>
            <form action="" class="form">                
				<%
					String username = request.getParameter("uname");
					String realname = request.getParameter("realname");
					String identity = request.getParameter("identity");
					if(username==null){
				%>
					<h3>抱歉，用户名为空，请登录!<p><a href="login.jsp">登录</a></p></h3>
				<%}else{ %>
					<h1 class="loader" id="divOutput"></h1>
					<h3 style="font-family: 方正楷体_GBK;">用户名：<%=username %></h3>
					<h3 style="font-family: 方正楷体_GBK;">身份：<%=identity %></h3>
					<p style="font-family: 华文楷体;"><a href="Log.jsp">日志审计</a></p>
					<p style="font-family: 华文楷体;"><a href="Jacap.jsp?identity=<%=identity%>">流量审计</a></p>	
					<p style="font-family: 华文楷体;"><a href="Usb.jsp">USB审计</a></p>				
				<%} %>
            </form>
    </div>
	<script>
	    var str = "欢迎您：<%=realname %>"
	    var i = 0;
	    function outPuting(){
	        var divOutput = document.getElementById('divOutput')
	        if(i<=str.length){
	            divOutput.innerHTML = str.slice(0,i++) + "-";
	            setTimeout("outPuting()",
		200)
			} else {
				divOutput.innerHTML = str;
			}
		}
		outPuting();
		// 停止计时器
		function stopSetTimeout() {
			var highestTimeoutId = setTimeout(';');
			for (var i = 0; i < highestTimeoutId; i++) {
				clearTimeout(i);
			}
		}
	</script>
</body>
</html>